|
|
|
|
|
|
|
Custom Control Naming Conventions |
|
|
|
|
|
|
|
|
An important part of any Visual Basic program is the controls placed on a form. All similar custom controls should have a common prefix. For example, text boxes should start with txt, and labels should start with lbl. Table A.2 shows the recommended control name prefixes for most of the controls in the Visual Basic environment. These prefixes are consistent with those documented in the Visual Basic Programmers Guide. |
|
|
|
|
| Table A.2 Custom Control Naming Conventions. | | Prefix | Control Type | Example | | ani | Animation button | aniMailBox | | cbo | Combo box | cboEnglish | | chk | Check box | chkReadOnly | | clp | Picture clip | clpToolbar | | com | Communications | comFax | | dat | Data control | datBiblio | | dbc | Data-aware combo box | dbcStates | | dbg | Data-aware grid | dbgLineItems | | dbl | Data-aware list box | dblCustomers | | dir | Directory list box | dirSource | | dlg | Common dialog control | dlgFileOpen | | drv | Drive list box | drvTarget | | fil | File list box | filSource | | fra | Frame | fraLanguage | | frm | Form | frmEntry | | gau | Gauge | gauStatus | | gpb | Group pushbutton | gpbChannel | | gra | Graph | graRevenue | | grd | Grid | grdPrices | | hsb | Horizontal scrollbar | hsbVolume | | img | Image | imgIcon | | iml | ImageList control | imlPictures |
|
|
|
|
|
|
(table continued on next page) |
|
|
|
|
|